package com.example.qxfw.nyqx.service.impl;

import com.example.qxfw.common.entity.qx.soilHumidity;
import com.example.qxfw.nyqx.mapper.SoilHumidityMapper;
import com.example.qxfw.nyqx.service.SoilHumidityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SoilHumidityServiceImpl implements SoilHumidityService {

    @Autowired
    private SoilHumidityMapper soilHumidityMapper;

    @Override
    public List<String> getStationId() {
        return soilHumidityMapper.selectStationId();
    }

    @Override
    public List<soilHumidity> getList(String stationId, String time1, String time2, String level) {
        return soilHumidityMapper.selectList(stationId,time1,time2,level);
    }
}
